projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae83b79
)
stackswitcher: Set accessible label properties
author
Matthias Clasen
<mclasen@redhat.com>
Tue, 20 Apr 2021 02:11:55 +0000
(22:11 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 20 Apr 2021 02:11:55 +0000
(22:11 -0400)
This makes the tabs in about dialogs come out as
'About', 'Credits', and 'System', instead of
'Tab', 'Tab', 'Tab'.
gtk/gtkstackswitcher.c
patch
|
blob
|
history
diff --git
a/gtk/gtkstackswitcher.c
b/gtk/gtkstackswitcher.c
index e0896a74f0814c5c8d1ac10299ea588a25808c95..7ce0efb10974c771038403f2d2a7e38dd053f0da 100644
(file)
--- a/
gtk/gtkstackswitcher.c
+++ b/
gtk/gtkstackswitcher.c
@@
-154,6
+154,10
@@
rebuild_child (GtkWidget *self,
gtk_widget_set_halign (GTK_WIDGET (button_child), GTK_ALIGN_CENTER);
gtk_button_set_child (GTK_BUTTON (self), button_child);
}
+
+ gtk_accessible_update_property (GTK_ACCESSIBLE (self),
+ GTK_ACCESSIBLE_PROPERTY_LABEL, title,
+ -1);
}
static void